#include<iostream>
using namespace std;
int main(){
  int a,b,c;
  double d;
  cin>>a>>b>>c;
  d=0.2*a+0.3*b+0.5*c;
  cout<<(int)d;
}